import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/event/` + url, ...arg)

/**
 * 物品事件Api接口管理器
 *
 * @author 古月墨塵
 * @date  2022/11/26 11:24
 **/
export default {
	// 获取物品事件分页
	bizGoodsEventPage(data) {
		return request('page', data)
	},

	// 获取物品事件详情
	bizGoodsEventDetail(data) {
		return request('detail', data,'get')
	},

	// 处理异常
	bizGoodsEventExcHandle(data) {
		return request('excHandle', data)
	},

	// 批量处理异常
	bizGoodsEventExcHandleBatch(data) {
		return request('excHandleBatch', data)
	},

	// 盘库报告
	bizEventInvGoodsExport(data) {
		const options = {
			responseType: 'blob'
		}
		return request('exportInvGoods', data, 'get', options)
	}
}
